package com.caogt.user.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * @Desc TODO
 * @user caogt
 * @Date 2019-06-18-23:04
 */
@Configuration
public class WebConfig extends WebMvcConfigurationSupport {

    @Autowired
    private CheckHeaderInterceptor checkHeaderInterceptor;
    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(checkHeaderInterceptor).addPathPatterns("/**");
        super.addInterceptors(registry);
    }
}
